
import request from '@/utils/request'
import { apiUrl } from '@/config/env'

export function getOrders(data) {
  return request({
    url: `${apiUrl}/order/getOrders`,
    method: 'get',
    params: data
  })
}
export function getOrderInfo(data) {
  return request({
    url: `${apiUrl}/order/getOrderInfo`,
    method: 'get',
    params: data
  })
}
export function updateDeliverWare(data) {
  return request({
    url: `${apiUrl}/order/updateDeliverWare`,
    method: 'post',
    params: data
  })
}

export function cancel(data) {
  return request({
    url: `${apiUrl}/order/cancel`,
    method: 'post',
    params: data
  })
}
